<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //session储存？
        sessionStorage.setItem('uname','111');

        sessionStorage.getItem('uname');
        var unmae = sessionStorage.getItem('uname');
        console.log(unmae);
        //本地储存
        localStorage.setItem('sex','222');
    </script>
</body>
</html>